/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mycompany.remotecalc;

import java.util.HashMap;
import javax.ejb.Stateless;

/**
 *
 * @author nico
 */
@Stateless
public class CapitalBean implements ICapitalBeanRemote {
    
private HashMap<String, String> capitals = new HashMap<>();

public CapitalBean() {
capitals.put("United Kingdom", "London");
capitals.put("Japan", "Tokyo");
capitals.put("India", "New Delhi");
}

@Override
public String getCapital(String country) {
return capitals.get(country);
}
}